package com.si.rapid;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
/**
 * A class representing About dialog in rapidSearch application
 * @author Carlos Martinez
 *
 */
public class AboutDialog extends Dialog implements OnClickListener {
	
	Button buttonClose;
	/**
     * Constructor is setting title, content and listener for button close
     *
     * @param     context  The Context the Dialog is to run it
     */
    public AboutDialog(Context context) {
        super(context);
        setContentView(R.layout.about_dialog);
        setTitle(R.string.titleAbout);
        setCancelable(false);
        buttonClose = (Button) findViewById(R.id.buttonClose);
        buttonClose.setOnClickListener(this);
	}
    
    /**
     * Implementation of OnClickListener 
     *
     * @param     context  The Context the Dialog is to run it
     */
    public void onClick(View v) {
        if (v == buttonClose)
            dismiss();
    }
	 

}
